package com.axjy.service.impl;

import com.axjy.dao.RoleMgnMapper;
import com.axjy.pojo.RoleMgn;
import com.axjy.service.RoleMgnService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by dell on 2018/1/25.
 */
@Service("roleMgnService")
public class RoleMgnServiceImpl implements RoleMgnService {

    @Resource
    private RoleMgnMapper roleMgnMapper;


    @Override
    public List<RoleMgn> search1(String customName) {
        return roleMgnMapper.search1(customName);
    }

    @Override
    public void add(RoleMgn roleMgn) {
         roleMgnMapper.add(roleMgn);
    }

    @Override
    public void update(RoleMgn roleMgn) {
        roleMgnMapper.update(roleMgn);
    }

    @Override
    public void delete(Integer id) {
        roleMgnMapper.delete(id);
    }
}
